<div th:fragment="commonjs(scripts)">
    <script type="text/javascript" src="/static/resources/plugins/layui/layui.js"></script>
    <th:block th:replace="${scripts}" />
</div>